@Controller
@RequestMapping("/commonController")
public class CommonController {
    /**
     * Logger for this class
     */
    private static final Logger logger = Logger.getLogger(CommonController.class);

    @Resource
    private BookingServiceI bookingService;


    @RequestMapping("/toCommon")
    public String toCommon() {
        return "common/booking";
    }

    @RequestMapping("/find/{col}/{val}")
    public String find(@PathVariable("col") String col, @PathVariable("val") String val,Model model) {
        List<Booking> books = bookingService.findBookingsByM_bl_noOrCont_no(col, val);
        model.addAttribute("books", books);
        model.addAttribute("col", col);
        model.addAttribute("val", val);
        return "common/booking";
    }
}